package ex3;

import ex2.RandomNum;

import java.util.Random;

public class Main {
    public static void main(String[] args) {
//        int []arr = new int[10];
//        Random random = new Random();
//        for (int i = 0; i < 10; i++) {
//            arr[i] = random.nextInt(100)+1;
//        }
//        ArrayBoubleSort arrSort = new ArrayBoubleSort();
//        arrSort.UseSort(arr);
//        PrintArray.arrPrint(arr);

        Student[] student = new Student[2];
        student[0] = new Student();
        student[0].setsName("Zhang");
        student[0].setsNum("100");
        student[0].setEnglishScore(78);
        student[0].setMathScore(75);
        student[0].setJavaScore(87);
        student[1] = new Student();
        student[1].setsName("Liu");
        student[1].setsNum("101");
        student[1].setEnglishScore(65);
        student[1].setMathScore(70);
        student[1].setJavaScore(72);
        Student s3 = new Student("Li","103",90,76,75);
        for (int i = 0; i < 2; i++) {
            student[i].displayScore(student[i]);
        }
        s3.displayScore(s3);
        System.out.println("========");
        for (int i = 0; i < 2; i++) {
            student[i].scoreSum(student[i]);
        }
        s3.scoreSum(s3);
    }
}
